package com.guyi.testNG;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
import org.testng.asserts.Assertion;

import com.guyi.Base.HomePage;

public class TestCommon {
	static WebDriver driver;
	public TestCommon() { 
		if (driver ==null) {
			driver = new FirefoxDriver();	
		} 
	} 
	@Test
	public void createDriver() {
		System.err.println("createDriver");
		TestCommon tcom = new TestCommon();
		HomePage l = new HomePage(driver); 
		String url = "http://115.29.198.101:8011/index.htm";		
		boolean result2 = l.login("test", "test", url); 
		new Assertion().assertEquals(result2, true, "query");
	}	
}
